package com.zxy.broker.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxy.common.utils.PageUtils;
import com.zxy.common.utils.Query;

import com.zxy.broker.dao.HousingResourceDao;
import com.zxy.broker.entity.HousingResourceEntity;
import com.zxy.broker.service.HousingResourceService;


@Service("housingResourceService")
public class HousingResourceServiceImpl extends ServiceImpl<HousingResourceDao, HousingResourceEntity> implements HousingResourceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HousingResourceEntity> page = this.page(
                new Query<HousingResourceEntity>().getPage(params),
                new QueryWrapper<HousingResourceEntity>()
        );

        return new PageUtils(page);
    }

}